Skip to content

fix(cli): exit non-zero when concore build --auto-build fails - #673

Open
yadavchiragg wants to merge 1 commit into
ControlCore-Project:devfrom
yadavchiragg:fix/build-failure-exit-code
Open

yadavchiragg wants to merge 1 commit into
ControlCore-Project:devfrom
yadavchiragg:fix/build-failure-exit-code

Conversation

@yadavchiragg

Copy link
Copy Markdown

Fixes #640

Problem: when the generated build script failed under --auto-build, concore build printed “Build failed” and then “Workflow ready!” and exited 0, so scripts and CI treated a broken build as a success.

Change: the failure now prints the build output and raises, so the CLI’s existing error handler prints the error and exits 1. The “Workflow ready” panel is no longer shown after a failure. Successful builds and builds without --auto-build behave as before.

Testing: new tests/test_build_failure.py covers a failing build (non-zero exit, output shown, no “Workflow ready”), a successful build, and no --auto-build. The failing-build test fails on current dev and passes with this change. ruff format --check, ruff check and the full suite pass.

@github-actions

Copy link
Copy Markdown

🎉 Welcome aboard, @yadavchiragg! Thank you for your first pull request in concore.

Please ensure that you are contributing to the dev branch.

Your contribution means a lot to us. We'll review it shortly.

Please ensure you have reviewed our:

If you have any questions, feel free to ask. Happy coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant